package net.butfly.bus.policy;

public interface Router {
	String route(String tx);

	/**
	 * Directory lookup.
	 * 
	 * @param code
	 * @return
	 */
	String[] lookup(String code);

	/**
	 * Nodes routing lookup.
	 * 
	 * @param code
	 * @param nodeIDs
	 * @return
	 */
	String lookup(String code, String[] nodeIDs);
}
